package router

import (
	"gateway/handler/api"
	"gateway/pkg"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	r.POST("sendsms", api.SendSms)
	r.POST("/login", api.Login)
	r.POST("/typeList", api.TypeList)
	r.POST("/goodDetail", api.GoodDetail)
	r.Use(pkg.JWTAuth("user"))
	r.POST("/commentAdd", api.CommentAdd)
	return r
}
